package com.voltmao.persistent.model;

import org.mybatis.annotation.Field;
import org.mybatis.annotation.Table;

import java.io.Serializable;

/**
 * admin_menu
 */
@Table(name = "admin_menu")
public class AdminMenu implements Serializable {
    /**
     * 主键
     */
    public static final String DATAID = "dataId";

    /**
     * 主键
     */
    @Field(columnName = "data_id", jdbcType = "VARCHAR", javaType = String.class, length = 36, scale = 0)
    private String dataId;

    /**
     * 菜单名称
     */
    public static final String NAME = "name";

    /**
     * 菜单名称
     */
    @Field(columnName = "name", jdbcType = "VARCHAR", javaType = String.class, length = 255, scale = 0)
    private String name;

    /**
     * actionUrl
     */
    public static final String ACTIONURL = "actionUrl";

    /**
     * actionUrl
     */
    @Field(columnName = "action_url", jdbcType = "VARCHAR", javaType = String.class, length = 5000, scale = 0)
    private String actionUrl;

    /**
     * 图标
     */
    public static final String ICON = "icon";

    /**
     * 图标
     */
    @Field(columnName = "icon", jdbcType = "VARCHAR", javaType = String.class, length = 255, scale = 0)
    private String icon;

    /**
     * pcode
     */
    public static final String PCODE = "pcode";

    /**
     * pcode
     */
    @Field(columnName = "pcode", jdbcType = "VARCHAR", javaType = String.class, length = 255, scale = 0)
    private String pcode;

    /**
     * code
     */
    public static final String CODE = "code";

    /**
     * code
     */
    @Field(columnName = "code", jdbcType = "VARCHAR", javaType = String.class, length = 255, scale = 0)
    private String code;

    /**
     * sortNum
     */
    public static final String SORTNUM = "sortNum";

    /**
     * sortNum
     */
    @Field(columnName = "sort_num", jdbcType = "INTEGER", javaType = Integer.class, length = 10, scale = 0)
    private Integer sortNum;

    private static final long serialVersionUID = 1L;

    /**
     * @return dataId
     * 主键
     */
    public String getDataId() {
        return dataId;
    }

    /**
     * @param dataId 主键
     */
    public void setDataId(String dataId) {
        this.dataId = dataId == null ? null : dataId.trim();
    }

    /**
     * @return name
     * 菜单名称
     */
    public String getName() {
        return name;
    }

    /**
     * @param name 菜单名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * @return actionUrl
     * actionUrl
     */
    public String getActionUrl() {
        return actionUrl;
    }

    /**
     * @param actionUrl actionUrl
     */
    public void setActionUrl(String actionUrl) {
        this.actionUrl = actionUrl == null ? null : actionUrl.trim();
    }

    /**
     * @return icon
     * 图标
     */
    public String getIcon() {
        return icon;
    }

    /**
     * @param icon 图标
     */
    public void setIcon(String icon) {
        this.icon = icon == null ? null : icon.trim();
    }

    /**
     * @return pcode
     * pcode
     */
    public String getPcode() {
        return pcode;
    }

    /**
     * @param pcode pcode
     */
    public void setPcode(String pcode) {
        this.pcode = pcode == null ? null : pcode.trim();
    }

    /**
     * @return code
     * code
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code code
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /**
     * @return sortNum
     * sortNum
     */
    public Integer getSortNum() {
        return sortNum;
    }

    /**
     * @param sortNum sortNum
     */
    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }
}